Ext.define('Jason.store.protal.module.systemManager.sources.area.TreeStore', {
    extend: 'Ext.data.TreeStore',
    folderSort: false,
    remoteFilter: true,
    folderSort: true,
    autoLoad: false,
    model:'Jason.model.protal.module.systemManager.souces.area.AreaModel',
    alias: 'store.areaTreeStore',
    storeId: 'areaTreeStore',
    root:{
        expanded: true,
        text:'root'
    },
    proxy: {
        type:'ajax',
        url: reqUrl.sys.area.findTreeDate,
        api : {
            read:       reqUrl.sys.area.findTreeDate,
            create:     reqUrl.sys.area.create,
            update:     reqUrl.sys.area.update,
            destroy:    reqUrl.sys.area.destroy,
            exp:        reqUrl.sys.area.exp,
        },
        writer : {
            type : 'object',
            successProperty : 'success',
            writeRecordId : true,
            writeAllFields : false// 没有修改过的字段不加入到update的json中去
        },
        reader : {
            rootProperty    : 'data',
            totalProperty   : 'total',
            successProperty : 'success'
        }
    }
})